package com.whoimi.admin.rest.req;

import com.whoimi.common.jdbc.SqlOperate;

import java.io.Serializable;
import java.util.List;

public class NoticePageQuery implements Serializable {

    /**
     * 通知标题
     */
    @SqlOperate(alias = "n", operate = SqlOperate.OperateEnum.LIKE)
    private String title;
    //发布状态(0-未发布 1已发布 -1已撤回)
    private Integer publishStatus;
    //发布时间(起止)
    @SqlOperate(alias = "n", operate = SqlOperate.OperateEnum.EQUAL, dbFieldName = "publish_time")
    private List<String> publishTime;
    //查询人ID
    @SqlOperate(alias = "un", operate = SqlOperate.OperateEnum.EQUAL, dbFieldName = "username")
    private String username;
    // 是否已读（0-未读 1-已读）
    private boolean isRead;


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPublishStatus() {
        return publishStatus;
    }

    public void setPublishStatus(Integer publishStatus) {
        this.publishStatus = publishStatus;
    }

    public List<String> getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(List<String> publishTime) {
        this.publishTime = publishTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean getIsRead() {
        return isRead;
    }

    public void setIsRead(boolean isRead) {
        this.isRead = isRead;
    }

    @Override
    public String toString() {
        return "NoticePageQuery{" +
                "title='" + title + '\'' +
                ", publishStatus=" + publishStatus +
                ", publishTime=" + publishTime +
                ", username=" + username +
                ", isRead=" + isRead +
                '}';
    }
}